<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Class: Sass::Tree::MediaNode</title>
<link rel="stylesheet" href="style.css" tppabs="http://sass-lang.com/docs/yardoc/css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="common.css" tppabs="http://sass-lang.com/docs/yardoc/css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '../..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="jquery.js" tppabs="http://sass-lang.com/docs/yardoc/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="app.js" tppabs="http://sass-lang.com/docs/yardoc/js/app.js"></script>

  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="_index.html" tppabs="http://sass-lang.com/docs/yardoc/_index.html">Index (M)</a> &raquo; 
    <span class='title'><a href="Sass-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass.html" title="Sass (module)">Sass</a></span> &raquo; <span class='title'><a href="Tree.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree.html" title="Sass::Tree (module)">Tree</a></span>
     &raquo; 
    <span class="title">MediaNode</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="javascript:if(confirm(%27http://sass-lang.com/docs/yardoc/Sass/Tree/.  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?%27))window.location=%27http://sass-lang.com/docs/yardoc/Sass/Tree/.%27" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  <a id="class_list_link" href="#">Class List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Class: Sass::Tree::MediaNode 
  
  
</h1>

<dl class="box">
  
    <dt class="r1">Inherits:</dt>
    <dd class="r1">
      <span class="inheritName"><a href="DirectiveNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/DirectiveNode.html" title="Sass::Tree::DirectiveNode (class)">DirectiveNode</a></span>
      
        <ul class="fullTree">
          <li>Object</li>
          
            <li class="next"><a href="Node.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html" title="Sass::Tree::Node (class)">Node</a></li>
          
            <li class="next"><a href="DirectiveNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/DirectiveNode.html" title="Sass::Tree::DirectiveNode (class)">DirectiveNode</a></li>
          
            <li class="next">Sass::Tree::MediaNode</li>
          
        </ul>
        <a href="#" class="inheritanceTree">show all</a>
      
      </dd>
    
  
  
    
  
    
  
  
    <dt class="r2 last">Defined in:</dt>
    <dd class="r2 last">/var/www/sass-pages/.sass/lib/sass/tree/media_node.rb</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p>A static node representing a <code>@media</code> rule. <code>@media</code> rules behave differently from other directives in that when they&#8217;re nested within rules, they bubble up to top-level.</p>

  </div>
</div>
<div class="tags">
  
  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="Tree.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree.html" title="Sass::Tree (module)">Sass::Tree</a></li>
    
  </ul>

</div>

  
  
  
  
  
  
  
  
  
  <h2>Instance Attribute Summary</h2>
  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#group_end-instance_method" title="#group_end (instance method)">- <strong>group_end</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#query-instance_method" title="#query (instance method)">- (Array&lt;String, Sass::Script::Node&gt;) <strong>query</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">The media query for this rule, interspersed with <tt><a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Sass::Script::Node</a></tt>s representing <code>#{}</code>-interpolation.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#resolved_query-instance_method" title="#resolved_query (instance method)">- (Sass::Media::QueryList) <strong>resolved_query</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">The media query for this rule, without any unresolved interpolation.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#tabs-instance_method" title="#tabs (instance method)">- <strong>tabs</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
  </ul>


  <h2>Instance Method Summary</h2>

  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#bubbles%3F-instance_method" title="#bubbles? (instance method)">- (Boolean) <strong>bubbles?</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#initialize-instance_method" title="#initialize (instance method)">- (MediaNode) <strong>initialize</strong>(query) </a>
    

    
  </span>
  
    <span class="note title constructor">constructor</span>
  
  
  
  
  

  
    <span class="summary_desc">A new instance of MediaNode.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#invisible%3F-instance_method" title="#invisible? (instance method)">- (Boolean) <strong>invisible?</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">True when the directive has no visible children.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#name-instance_method" title="#name (instance method)">- <strong>name</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#resolved_value-instance_method" title="#resolved_value (instance method)">- <strong>resolved_value</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#value-instance_method" title="#value (instance method)">- <strong>value</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
  </ul>

  
  
  
  
  
  <h3 class="inherited">Methods inherited from <a href="DirectiveNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/DirectiveNode.html" title="Sass::Tree::DirectiveNode (class)">DirectiveNode</a></h3>
  <p class="inherited"><a href="DirectiveNode.html#resolved-class_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/DirectiveNode.html#resolved-class_method" title="Sass::Tree::DirectiveNode.resolved (method)">resolved</a></p>

  
  
  
  
  
  <h3 class="inherited">Methods inherited from <a href="Node.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html" title="Sass::Tree::Node (class)">Node</a></h3>
  <p class="inherited"><a href="Node.html#%3C%3C-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#%3C%3C-instance_method" title="Sass::Tree::Node#<< (method)">#<<</a>, <a href="Node.html#%3D%3D-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#%3D%3D-instance_method" title="Sass::Tree::Node#== (method)">#==</a>, <a href="Node.html#balance-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#balance-instance_method" title="Sass::Tree::Node#balance (method)">#balance</a>, <a href="Node.html#deep_copy-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#deep_copy-instance_method" title="Sass::Tree::Node#deep_copy (method)">#deep_copy</a>, <a href="Node.html#each-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#each-instance_method" title="Sass::Tree::Node#each (method)">#each</a>, <a href="Node.html#inspect-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#inspect-instance_method" title="Sass::Tree::Node#inspect (method)">#inspect</a>, <a href="Node.html#style-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#style-instance_method" title="Sass::Tree::Node#style (method)">#style</a>, <a href="Node.html#to_s-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#to_s-instance_method" title="Sass::Tree::Node#to_s (method)">#to_s</a>, <a href="Node.html#to_sass-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#to_sass-instance_method" title="Sass::Tree::Node#to_sass (method)">#to_sass</a>, <a href="Node.html#to_scss-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#to_scss-instance_method" title="Sass::Tree::Node#to_scss (method)">#to_scss</a></p>

  <div id="constructor_details" class="method_details_list">
  <h2>Constructor Details</h2>
  
    <div class="method_details first">
  <p class="signature first" id="initialize-instance_method">
  
    - (<tt><a href="" title="Sass::Tree::MediaNode (class)">MediaNode</a></tt>) <strong>initialize</strong>(query) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>A new instance of MediaNode</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>Array&lt;String, <a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Sass::Script::Node</a>&gt;</tt>)</span>
      
      
        <span class='name'>query</span>
      
      
      
        &mdash;
        See <tt><a href="#query-instance_method" title="Sass::Tree::MediaNode#query (method)">#query</a></tt>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


31
32
33
34
35</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/media_node.rb', line 31</span>

def initialize(query)
  @query = query
  @tabs = 0
  super('')
end</pre>
    </td>
  </tr>
</table>
</div>
  
</div>

  <div id="instance_attr_details" class="attr_details">
    <h2>Instance Attribute Details</h2>
    
      
      <span id="group_end=-instance_method"></span>
      <span id="group_end-instance_method"></span>
      <div class="method_details first">
  <p class="signature first" id="group_end-instance_method">
  
    - <strong>group_end</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    

  </div>
</div>
<div class="tags">
  
  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="RuleNode.html#group_end-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/RuleNode.html#group_end-instance_method" title="Sass::Tree::RuleNode#group_end (method)">RuleNode#group_end</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


28
29
30</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/media_node.rb', line 28</span>

def group_end
  @group_end
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="query=-instance_method"></span>
      <span id="query-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="query-instance_method">
  
    - (<tt>Array&lt;String, <a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Sass::Script::Node</a>&gt;</tt>) <strong>query</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The media query for this rule, interspersed with <tt><a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Sass::Script::Node</a></tt>s representing <code>#{}</code>-interpolation. Any adjacent strings will be merged together.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Array&lt;String, <a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Sass::Script::Node</a>&gt;</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


16
17
18</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/media_node.rb', line 16</span>

def query
  @query
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="resolved_query=-instance_method"></span>
      <span id="resolved_query-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="resolved_query-instance_method">
  
    - (<tt><a href="QueryList.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Media/QueryList.html" title="Sass::Media::QueryList (class)">Sass::Media::QueryList</a></tt>) <strong>resolved_query</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The media query for this rule, without any unresolved interpolation. It&#8217;s only set once <tt>Tree::Node#perform</tt> has been called.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="QueryList.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Media/QueryList.html" title="Sass::Media::QueryList (class)">Sass::Media::QueryList</a></tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


22
23
24</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/media_node.rb', line 22</span>

def resolved_query
  @resolved_query
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="tabs=-instance_method"></span>
      <span id="tabs-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="tabs-instance_method">
  
    - <strong>tabs</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    

  </div>
</div>
<div class="tags">
  
  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="RuleNode.html#tabs-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/RuleNode.html#tabs-instance_method" title="Sass::Tree::RuleNode#tabs (method)">RuleNode#tabs</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


25
26
27</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/media_node.rb', line 25</span>

def tabs
  @tabs
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>


  <div id="instance_method_details" class="method_details_list">
    <h2>Instance Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="bubbles?-instance_method">
  
    - (<tt>Boolean</tt>) <strong>bubbles?</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
    </li>
  
</ul>

  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="Node.html#bubbles%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html#bubbles%3F-instance_method" title="Sass::Tree::Node#bubbles? (method)">Node#bubbles?</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


56</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/media_node.rb', line 56</span>

def bubbles?; true end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="invisible?-instance_method">
  
    - (<tt>Boolean</tt>) <strong>invisible?</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>True when the directive has no visible children.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


51
52
53</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/media_node.rb', line 51</span>

def invisible?
  children.all? {|c| c.invisible?}
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="name-instance_method">
  
    - <strong>name</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    

  </div>
</div>
<div class="tags">
  
  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="DirectiveNode.html#name-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/DirectiveNode.html#name-instance_method" title="Sass::Tree::DirectiveNode#name (method)">DirectiveNode#name</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


41</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/media_node.rb', line 41</span>

def name; '@media' end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="resolved_value-instance_method">
  
    - <strong>resolved_value</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    

  </div>
</div>
<div class="tags">
  
  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="DirectiveNode.html#resolved_value-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/DirectiveNode.html#resolved_value-instance_method" title="Sass::Tree::DirectiveNode#resolved_value (method)">DirectiveNode#resolved_value</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


44
45
46</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/media_node.rb', line 44</span>

def resolved_value
  @resolved_value ||= "@media #{resolved_query.to_css}"
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="value-instance_method">
  
    - <strong>value</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    

  </div>
</div>
<div class="tags">
  <h3>Raises:</h3>
<ul class="raise">
  
    <li>
      
        <span class='type'>(<tt>NotImplementedError</tt>)</span>
      
      
      
      
    </li>
  
</ul>

  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="DirectiveNode.html#value-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/DirectiveNode.html#value-instance_method" title="Sass::Tree::DirectiveNode#value (method)">DirectiveNode#value</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


38</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/tree/media_node.rb', line 38</span>

def value; raise NotImplementedError end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Fri Mar  8 20:33:43 2013 by 
  <a href="javascript:if(confirm(%27http://yardoc.org/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://yardoc.org/%27" tppabs="http://yardoc.org/" title="Yay! A Ruby Documentation Tool">yard</a>
  0.5.3 (ruby-1.8.7).
</div>


  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-535380-8");
  pageTracker._trackPageview();
  } catch(err) {}</script>


  </body>
</html>